import { createStore } from 'vuex'
import { RootState } from './../types/state.d';
import modules from './install';
// 创建一个新的 store 实例
const store = createStore({
  modules,
  state () : RootState {
    return {
      count: 0
    }
  },
  mutations: {
    increment (state: RootState) {
      state.count++
    }
  }
})

export default store